/*/
 * 网页头部导航栏和搜索框样式
 * By 张剑锋
/*/
body{
    margin: 0;
    min-width: 800px;
    cursor: default;
}
#nav{
    padding: 4px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #545652;
}
#nav>div{
    padding-bottom: 2px;
}
#nav a{
    margin: 0px 10px;
    color: lightgray;
    font-size: small;
    text-decoration: none;
    white-space: nowrap;
}
#nav a:hover{
    color: white;
}
#top{
    padding: 48px 32px;
    display: flex;
    justify-content: center;
}
#top>div{
    width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#top>div>div:first-of-type{
    display: flex;
    align-items: center;
    cursor: pointer;
}
#top>div>div>img{
    width: 32px;
    height: 32px;
}
#top>div>div>a{
    font-size: 30px;
    white-space: nowrap;
}
#top>div>div:last-of-type{
    max-width: 400px;
    margin: 0px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
#top>div>div>div:first-of-type{
    display: flex;
    border: 1px solid silver;
    border-radius: 4px;
}
#top>div>div>div:last-of-type{
    position: relative;
}
#pop{
    width: 100%;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-top-width: 0px;
    background: white;
    position: absolute;
    cursor: pointer;
    display: none;
}
#pop>div{
    display: flex;
    padding: 6px;
    border-top: 1px solid lightgray;
}
#pop>div:hover{
    background: whitesmoke;
}
#pop>div>img{
    width: 40px;
    height: 60px;
}
#pop>div>div{
    display: flex;
    flex-direction: column;
}
#pop>div>div>a{
    padding: 2px 8px;
    font-size: small;
}
#pop>div>div>a:first-of-type{
    color: #336699;
}
#pop>div>div>a:last-of-type{
    color: #999999;
}
#ipt{
    padding: 8px;
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    flex: 1;
}
#btn{
    position: relative;
    width: 36px;
    height: 36px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: red;
    cursor: pointer;
}
#btn>div{
    position: absolute;
}
#btn>div:nth-of-type(1){
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    border: 3px solid white;
    border-radius: 50%;
}
#btn>div:nth-of-type(2){
    top: 20px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: white;
    border-bottom-right-radius: 4px;
}
#btn>div:nth-of-type(3){
    top: 23px;
    left: 20px;
    border: 3px solid transparent;
    border-bottom-color: red;
    border-left-color: red;
}
#btn>div:nth-of-type(4){
    top: 20px;
    left: 23px;
    border: 3px solid transparent;
    border-top-color: red;
    border-right-color: red;
}
#btn:hover{
    background: lightcoral;
}
#btn:hover>div:nth-of-type(3){
    border-bottom-color: lightcoral;
    border-left-color: lightcoral;
}
#btn:hover>div:nth-of-type(4){
    border-top-color: lightcoral;
    border-right-color: lightcoral;
}